package com.jzo2o.market.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author itcast
 */

@Getter
@AllArgsConstructor
public enum CouponConfigDrawTypeEnum {
    SEIZE(0, "抢券"),
    AUTO_DISTRIBUTION(1, "自动发放"),
    REDEEM_CODE(2, "使用兑换码");

    private final int type;
    private final String name;

    public boolean equals(Integer status) {
        return status != null && this.type == status;
    }
}
